<template>
  <div>
    <Header />
    <!-- 路由占位符,路由出口 -->
    <router-view></router-view>
    <!-- 在Home、Search页面显示，其他页面不显示 -->
    <Footer v-show="$route.meta.show"/>
  </div>
</template>

<script>
import Header from './components/Header'
import Footer from './components/Footer'
export default {
  name: '',
  data () {
    return {
    }
  },
  components:{Header,Footer},
  mounted () {
    this.$store.dispatch('home/getCategoryList')
  },
  methods: {}
}
</script>

<style scoped lang=less>

</style>